package com.lcm.weam.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_role")
@JsonIgnoreProperties(value = "handler") //解决懒加载json序列化报错
public class Role implements Serializable {
    private Integer rid;
    private String rname;
    private String description;

    @TableField(exist = false)
    private List<Permission> permissions;

}
